<script setup>

</script>

<template>
  <div class="user-setting">
    <div class="wrapper">
      <!-- 左侧导航 -->
      <div class="sidebar">
        <ul>
          <li>
            <span class="iconfont icon-Postcodeyoubian"></span>
            <span class="sidebar-tab">个人资料</span>
          </li>
          <li>
            <span class="iconfont icon-shequ"></span>
            <span class="sidebar-tab">账号设置</span>
          </li>
        </ul>
      </div>
      <!-- 右侧信息 -->
      <div class="setting-view">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<style scoped>
.user-setting {
  background-color: #f2f3f5;
  /* 背景放大 */
  min-height: calc(100vh - 60px);
}

.user-setting .wrapper {
  width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* 左侧导航 */
.user-setting .wrapper .sidebar {
  background-color: #fff;
  width: 230px;
  margin-right: 30px;
  padding: 8px;
  border-radius: 4px;
}

.user-setting .wrapper .sidebar ul li {
  height: 50px;
  cursor: pointer;
  color: #515767;
  display: flex;
  align-items: center;
  border-radius: 5px;
}

.user-setting .wrapper .sidebar ul li:hover {
  background-color: rgba(144, 212, 113, 0.5) !important;
  border-radius: 5px;
  color: rgb(54, 104, 28) !important;
}

.user-setting .wrapper .sidebar ul li .iconfont {
  font-size: 20px;
  margin-right: 12px;
  margin-left: 24px;
}

.user-setting .wrapper .sidebar ul li .sidebar-tab {
  font-size: 16px;
}

/* 右侧信息 */
.user-setting .wrapper .setting-view {
  border-radius: 5px;
  background-color: #fff;
  flex: 1;
}
</style>